package br.com.cielo.utils;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;


public class leArquivo {
	
	String fullText = null; 

	public String getFullText() {
		return fullText;
	}
	public void setFullText(String fullText) {
		this.fullText = fullText;
	}

	public String getLog(InputStream inp) throws IOException {
	    
		String text = null;
		
	    if (inp != null) {
	      InputStreamReader isr = new InputStreamReader(inp);
	      BufferedReader reader = new BufferedReader(isr);
	      
	      while ((text = reader.readLine()) != null) {
	    	  fullText += text;
	      }
	    } else {
		      fullText = "";
	    }

	    return fullText;
	}
	
}
